/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.myapp.backingbean;

import com.aal.entitybean.Category;
import com.aal.sessionbean.category.CategoryFacadeLocal;
import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author Professional
 */
@ManagedBean
@RequestScoped
public class CategoryManagedBean {
    @EJB
    private CategoryFacadeLocal categoryFacade;

    private List<Category> listCate;
    /** Creates a new instance of CategoryManagedBean */
    public CategoryManagedBean() {
    }

    public List<Category> getListCate() {
        listCate = categoryFacade.findAll();
        return listCate;
    }

    public void setListCate(List<Category> listCate) {
        this.listCate = listCate;
    }

    

}
